home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14675 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1023 b   |  29 lines

  1. Newsgroups: comp.lang.c++
  2. Path: undergrad.math.uwaterloo.ca!clgonsal
  3. From: clgonsal@undergrad.math.uwaterloo.ca (Carl Laurence Gonsalves)
  4. Subject: Re: Generic classes and inheritance
  5. Sender: news@undergrad.math.uwaterloo.ca (news spool owner)
  6. Message-ID: <Dp6wJ6.oF9@undergrad.math.uwaterloo.ca>
  7. Date: Mon, 1 Apr 1996 15:33:06 GMT
  8. References: <3157368b.0@news.sisna.com>
  9. Nntp-Posting-Host: lhopital.uwaterloo.ca
  10. Organization: University of Waterloo
  11.  
  12. In article <3157368b.0@news.sisna.com>,
  13. Josh Gustafson <jgustafs@sisna.com> wrote:
  14. >Can a generic class be a base class for another generic class?  If so, what 
  15. >does the definition for the derived class look like?
  16.  
  17. Something like:
  18.  
  19. template < class T >
  20. class Derived : public Base< T >{
  21.     // blah blah...
  22. };
  23.  
  24. -- 
  25.         Carl Laurence Gonsalves - clgonsal@undergrad.math.uwaterloo.ca
  26.                    Computer Science, University of Waterloo
  27.                http://www.undergrad.math.uwaterloo.ca/~clgonsal/
  28.                    http://www.csclub.uwaterloo.ca/~clgonsal/
  29.